package com.stefan.snake;

import javax.swing.*;
import java.net.URL;

/**
 * 数据中心
 */
public class Data {

    /**
     * 相对路径 xxx.jpg
     * 绝对路径 / 相当于当前的项目
     */
    public static URL headerUrl = Data.class.getResource("statics/header.png ");

    public static ImageIcon header = new ImageIcon(headerUrl);

    public static URL upUrl = Data.class.getResource("statics/up.png ");

    public static ImageIcon up = new ImageIcon(upUrl);

    public static URL downUrl = Data.class.getResource("statics/down.png ");

    public static ImageIcon down = new ImageIcon(downUrl);

    public static URL leftUrl = Data.class.getResource("statics/left.png ");

    public static ImageIcon left = new ImageIcon(leftUrl);

    public static URL rightUrl = Data.class.getResource("statics/right.png ");

    public static ImageIcon right = new ImageIcon(rightUrl);

    public static URL bodyUrl = Data.class.getResource("statics/body.png ");

    public static ImageIcon body = new ImageIcon(bodyUrl);

    public static URL foodUrl = Data.class.getResource("statics/food.png ");

    public static ImageIcon food = new ImageIcon(foodUrl);

}
